#include <51func.h>
int main(int argc, char *argv[])
{
    // ./7_writeblock_read 1.pipe
    ARGS_CHECK(argc,2);
    int fdr = open(argv[1],O_RDONLY);
    sleep(10);
    printf("sleep over!\n");
    char buf[4096] = {0};
    read(fdr,buf,sizeof(buf));
    printf("read!\n");
    sleep(30);
    close(fdr);
    return 0;
}

